﻿namespace Admin.NET.Plugin.ViewFace;

/// <summary>
/// 用户信息表
/// </summary>
[SugarTable(null, "用户信息表")]
public class FaceUser : EntityTenant
{
    /// <summary>
    /// 用户编号
    /// </summary>
    [SugarColumn(ColumnDescription = "用户编号", Length = 32)]
    [MaxLength(32)]
    public string Code { get; set; }

    /// <summary>
    /// 分组编号
    /// </summary>
    [SugarColumn(ColumnDescription = "分组编号", Length = 32)]
    [MaxLength(32)]
    public string GroupCode { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [SugarColumn(ColumnDescription = "名称", Length = 32)]
    [MaxLength(32)]
    public string? Name { get; set; }

    /// <summary>
    /// 图片base64字符串
    /// </summary>
    [SugarColumn(ColumnDescription = "图片base64字符串", ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string? Base64 { get; set; }

    /// <summary>
    /// 人脸特征值
    /// </summary>
    [SugarColumn(ColumnDescription = "人脸特征值", ColumnDataType = StaticConfig.CodeFirst_BigString)]
    public string? Feature { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnDescription = "状态")]
    public int? Status { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", Length = 256)]
    [MaxLength(256)]
    public string? Remark { get; set; }
}